/*
 * 字典数据的下拉框
 */
 
					
Ext.ux.DctCombo=Ext.extend(Ext.form.ComboBox,{
	     
	      constructor:function(_conf)
		  { 
		   	      this.dcttypeen=_conf.dcttype;
		  	   /*   this.listdatas.on("load",function(_Store,_records){
		  	      
		  	       },this);*/
		  	       this.listdatas=new Ext.data.JsonStore({
				     	pruneModifiedRecords:true,//设置为true,则每次当store装载或有record被移除时,清空所有修改了的record信息. 默认为false. 
				  		fields: [ 'id','dcttypenote','dcttypeen','selecttype','selectsql','displayname','valuename','displayvalue','valuetext','otherfieldname','otherfieldvalue'],
						url: fullpath+'/sendisystem/queryDctDatawidthen.do' 
					  });
		  	      this.listdatas.load({params:{dcttypeen:this.dcttypeen}});  
		  	   
		     	if(_conf==null)
					_conf={};
					Ext.apply(this,_conf);
				 	Ext.ux.DctCombo.superclass.constructor.call(this,{
				 		  mode:'local',
				 		 triggerAction :'all',
				 	   displayField:'displayvalue',
    				   valueField:'valuetext',
    				   store :this.listdatas
				  	})
		  }

});

Ext.reg('dctcombo', Ext.ux.DctCombo);